package com.lxm.service.impl;

import com.lxm.entity.AdminRole;
import com.lxm.dao.AdminRoleMapper;
import com.lxm.service.IAdminRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lxm
 * @since 2021-11-18
 */
@Service
public class AdminRoleServiceImpl extends ServiceImpl<AdminRoleMapper, AdminRole> implements IAdminRoleService {

    @Override
    public Integer selectRoleIdByUserId(int uId) {
        return baseMapper.selectRoleIdByUserId(uId);
    }

    @Override
    public List<Integer> selectAllRoleIdByUserId(int uId) {
        return baseMapper.selectAllRoleIdByUserId(uId);
    }
}
